<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="include/base.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>My JSP 'editdocument.jsp' starting page</title>
    
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">

  </head>
  
  <body class="body"> 
  	n<%@ include file="include/top.jsp" %>
  	<div class="container" >
	  <div class="row">
		<div class="span3">
			<%@ include file="include/left.jsp" %>
		</div>
		<div class="span9">
		  	<form action ="editdocument.jspx" method="post">
				<fieldset>
					<legend>编辑该资料</legend>
					<div class="control-group">
						<label class="control-label" >标题</label>
						<div class="controls">
							<input type="hidden" name="id" value="${document.id }">
							<input type="text" class="span9" name="title" value="${document.title }" >
						</div>
					</div>
					<div class="control-group">
						<label class="control-label">内容</label>
						<div class="controls">
							<textarea name="content"  class="span9" rows="15" >${document.content }</textarea>
						</div>
					</div>

					<div class="form-actions">
						<button type="submit" class="btn btn-primary">保存</button>
						<button class="btn" onclick="location.back()">返回</button>
					</div>
				</fieldset>
			</form>          
		</div>
	　</div>
	</div>
	<script type="text/javascript" src="js/jquery.min.js"></script>
	<script type="text/javascript" src="js/active.js"></script>
  </body>
</html>
